package com.lexed.com;

/**
 * 持有股份的销售主管⼈员类
 * 
 * @author Administrator
 *
 */
public class SuperSaleEmployee extends SaleEmployee {
	int shares; // 股份
	double dividendRatio; // 分红比率

	public SuperSaleEmployee(String name, int basicSalary, int shares, double dividendRatio, double salesVolume,
			double commissionRate) {
		super(name, basicSalary, salesVolume, commissionRate);
		this.shares = shares;
		this.dividendRatio = dividendRatio;
	}

	public SuperSaleEmployee() {
		super();
		// TODO Auto-generated constructor stub
	}

	public SuperSaleEmployee(String name, int basicSalary, double salesVolume, double commissionRate) {
		super(name, basicSalary, salesVolume, commissionRate);
		// TODO Auto-generated constructor stub
	}

	public SuperSaleEmployee(String name, int basicSalary) {
		super(name, basicSalary);
		// TODO Auto-generated constructor stub
	}

	public double getSalary() {
		// TODO Auto-generated method stub
		return (shares * dividendRatio) + basicSalary + (salesVolume * commissionRate);
	}

}
